//     示例

export default [
  {
    url: /\/admin-api\/business\/color\/page/,
    method: 'get',
    result(options) {
      return {
        code: 200,
        msg: '成功',
        data: {
          total: 100,
          list: [
            {
              id: '1',
              colorName: '颜色',
              color1: `#000000`,
              color2: `#fff000`,
              remark: '备注',
            }
          ]
        }
      }
    }
  }, {
    url: /\/admin-api\/business\/color\/create/,
    method: 'post',
    result(options) {
      return {
        code: 200,
        msg: '成功',
      }
    }
  }, {
    url: /\/admin-api\/business\/color\/update/,
    method: 'post',
    result(options) {
      return {
        code: 200,
        msg: '成功',
      }
    }
  }, {
    url: /\/admin-api\/business\/color\/delete/,
    method: 'get',
    result(options) {
      return {
        code: 200,
        msg: '成功',
      }
    }
  },
  {
    url: /\/admin-api\/business\/color\/[0-9]$/,
    method: 'get',
    result(options) {
      return {
        code: 200,
        msg: '成功',
        data: {
          id: '1',
          colorName: '颜色',
          color1: `#000000`,
          color2: `#fff000`,
          remark: '备注',
        }
      }
    }
  },
]
